package org.jeecg.modules.recharge.mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.recharge.entity.OrderRecharge;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 充值订单
 * @Author: jeecg-boot
 * @Date:   2024-06-18
 * @Version: V1.0
 */
public interface OrderRechargeMapper extends BaseMapper<OrderRecharge> {

    IPage<OrderRecharge> pageList(IPage<OrderRecharge> page, @Param(Constants.WRAPPER) Wrapper<OrderRecharge> queryWrapper);

    List<Map> findUserCount(@Param("dayStart") Date dayStart, @Param("dayEnd") Date dayEnd);

    Long findTodayUserCount(@Param("dayStart") Date dayStart, @Param("dayEnd") Date dayEnd);
}
